package com.java.test;



/**
 * @author wangning
 * @create 2021-09-29 11:49
 */
public class AppMain {
	public static void main(String[] args) {
		Sample test1 = new Sample(" 测试1 ");
		Sample test2 = new Sample(" 测试2 ");

		test1.printName();
		test2.printName();
	}
}
class Sample {
	private String name;
	public Sample(String name) {
		this.name = name;
	}

	public void printName() {
		System.out.println(name);
	}

}